<script setup lang="ts">
// 引入新组件
import MobileNavbar from './components/MobileNavbar.vue';
</script>

<template>
  <!-- 使用新组件 -->
  <MobileNavbar />
  <!-- 添加 router-view 组件 -->
  <router-view />
</template>

<style scoped>
header {
  line-height: 1.5;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }
}

/* 手机端导航栏样式 */
.mobile-nav {
  background-color: #f8f9fa;
  padding: 10px;
}

.mobile-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

.mobile-nav ul li {
  display: inline;
}

.mobile-nav ul li input {
  width: 100px;
}
</style>
